package com.lbb.springboot.scheduler;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author likanghong
 */
@Component
public class ScheduledTask {
    @Scheduled(cron = "0 * * * * *")
    public void reportCurrentTimeCron() throws InterruptedException {
        System.out.println("任务执行！");
    }
}